package com.zhongwang.mms.module.half.model;

import com.alibaba.excel.annotation.format.NumberFormat;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

/**
 * @description:表单所有信息（包含主表和子表）
 * @author: th
 * @time: 2020/3/20 9:20
 */
@Data
public class HOrderDetailModel {

    private Integer odrId;

    private Integer odaInWhiId;

    private String odrCode;
    /** 临时表名 */
    private String tempTableName;

    private Integer odrType;

    private Integer odrRedFlag;

    private Integer odrItyFlag;

    @JsonFormat(pattern = "yyyy/MM/dd", timezone = "GMT+8")
    private Date odrDate;

    private String odrTakePerson;

    private String odrChecker;

    private String odrSummary;

    private Integer odrStatus;

    private String odrRepId;

    private String odrServicePerson;

    private Integer odrDept;

    private String odrDeptName;

    @JsonFormat(pattern = "yyyy/MM/dd", timezone = "GMT+8")
    private Date odrRedDate;

    private String odrRedPerson;

    @JsonFormat(pattern = "yyyy/MM/dd", timezone = "GMT+8")
    private Date odrMakeDate;

    private Integer odrOutType;

    private String odrOutTypeName;

    private Integer odaId;

    private Integer odaRushId;//红冲记录哪条子单

    private Integer odaOdrId;

    private String odaProCode;

    private String odaProName;

    private String odaPart;

    private String odaMatCode;

    private String odaMatName;

    private Double odaNum;

    private Integer odaWhiId;

    private Double odaPrice;

    private String odaUnit;

    private String odaBrand;

    private Integer odaMatType;

    private String odaRemark;

    @JsonFormat(pattern = "yyyy/MM/dd", timezone = "GMT+8")
    private Date odaStorageDate;

    private Integer odaRedFlag;

    @JsonFormat(pattern = "yyyy/MM/dd", timezone = "GMT+8")
    private Date odaRedDate;

    private String odaRedUser;

    private String odaDrawingCode;

    private String odaMakingPiecesStatus;

    private Integer odaIfFinishedProduct;

    @NumberFormat("#.##")
    private Double odaAmount;

    private String odaPosition;

    private String odaTrackCode;

    private String odaCaseNo;

    @JsonFormat(pattern = "yyyy/MM/dd", timezone = "GMT+8")
    private Date odaBoxingDate;

    private Integer odaStockType;

    private String odaStockTypeName;

    private String odaSapCode;

    private String odaWhiIdName;

    private String odaMatTypeName;

    private String odaIfFinishedProductName;

    private Integer odaOutsourcedType;

    private String odaOutsourcedTypeName;

    private Integer odaOutItyId;

    private Integer rowIndex;

    private Double odaAvaNum;

    private Integer ityId; //库存表ID

    private Integer odrWhiId;

    private Integer ardId; //调拨记录表ID

    private Integer ardType;//调拨出入库类型

    private String ardFormCode;//调拨单号

    private Integer ardExecStatus;//状态0：未执行1：外购件已出库2：成品库已入库  3：已领料  4：无法领料

    private Integer ardExecInPersonId; //调拨入成品库执行人

    @JsonFormat(pattern = "yyyy/MM/dd", timezone = "GMT+8")
    private Date ardExecInDate;//调拨入成品库执行时间

    private Integer ardExecTakePersonId;//调拨领料执行人

    @JsonFormat(pattern = "yyyy/MM/dd", timezone = "GMT+8")
    private Date ardExecTakeDate;//调拨领料执行执行时间

    @JsonFormat(pattern = "yyyy/MM/dd", timezone = "GMT+8")
    private Date startOdrMakeDate;

    @JsonFormat(pattern = "yyyy/MM/dd", timezone = "GMT+8")
    private Date endOdrMakeDate;

    @JsonFormat(pattern = "yyyy/MM/dd", timezone = "GMT+8")
    private Date ityStorageDate; //入库时间

    @JsonFormat(pattern = "yyyy/MM/dd", timezone = "GMT+8")
    private Date startStorageDate;

    @JsonFormat(pattern = "yyyy/MM/dd", timezone = "GMT+8")
    private Date endStorageDate;

    private String odaOrderNum; //订单号

    @NumberFormat("#.###")
    private Double odaWeight; //重量

    private String odaTexture;//材质

    private String odaSpec;//规格

    private Double oda;

    private String odaSupplier; //供应商
    private String contractNo; //合同编号
}
